package hu.debrecen.adastra.card.repository;

import hu.debrecen.adastra.card.repository.domain.PlayerStatistics;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface PlayerStatisticsRepository extends CrudRepository<PlayerStatistics, Long> {

	@Query("select a.playerStatistics from Account a where a.username = ?")
	PlayerStatistics findPlayerStatisticsByAccount(String username);

}
